package com.woniu.secondhand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.secondhand.entity.vo.CategoryIndexVO;
import com.woniu.secondhand.pojo.SecondhandCategory;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author HMMT
 * @since 2023-05-20
 */
public interface ISecondhandCategoryService extends IService<SecondhandCategory> {
    /**
     * 列出所有一级分类
     *
     * @return
     */
    List<CategoryIndexVO> listAllFirst();

    /**
     * 列出所有一级分类下的次级分类
     *
     * @param parentId
     * @return
     */
    CategoryIndexVO getCategoryByParentId(Integer parentId);
}
